home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / fortune-.tar / fortune- / fortune / datfiles / Makefile < prev    next >
Makefile  |  1995-10-20  |  1KB  |  29 lines

  1. all:
  2.     if [ $(OFFENSIVE) = 1 ] ; then $(MAKE) -C off ; fi
  3.     if [ $(WEB) = 1 ] ; then $(MAKE) -C html ; fi
  4.     -rm -f *.dat
  5.     for i in * ; do if [ "$$i" != "Makefile" \
  6.     -a -f $$i ] ; then ../util/strfile $$i ; fi ; done
  7.  
  8. install:
  9.     -mkdir $(COOKIEDIR)
  10.     if [ $(OFFENSIVE) = 1 ] ; then $(MAKE) -C off install ; fi
  11.     if [ $(WEB) = 1 ] ; then $(MAKE) -C html install ; fi
  12.     for i in * ; do if [ "$$i" != "Makefile" -a -f $$i ] ; \
  13.     then install -m 0644 $$i $(COOKIEDIR) ; fi ; done
  14. # Is this hack necessary?
  15. #    @echo "#!/bin/sh" >make-fortune-db
  16. #    @echo -n "# A fortune-file data file creation script" >>make-fortune-db
  17. #    @echo " -- Amy A. Lewis, September, 1995" >>make-fortune-db
  18. #    @echo "#Syntax: make-fortune-db [c] filename " >>make-fortune-db
  19. #    @echo "if [ \"\$$2\" != \"\" ] ; then $(BINDIR)/strfile -x \$$2" >>make-fortune-db
  20. #    @echo "elif [ \"\$$1\" != \"\" ] ; then $(BINDIR)/strfile \$$1" >>make-fortune-db
  21. #    @echo "else exit 1 ; fi" >>make-fortune-db
  22. #    @echo "# This is a quick hack, so feel free to improve on it.">>make-fortune-db
  23. #    install -m $(BINMODE) make-fortune-db $(COOKIEDIR)
  24.  
  25. clean:
  26.     -rm -f *.dat make-fortune-db
  27.     $(MAKE) -C off clean
  28.     $(MAKE) -C html clean
  29.